package com.qyhl.webtv.module_microvideo.shortvideo.classic.list;

import com.qyhl.webtv.commonlib.entity.microvideo.ClassicProgramBean;

import java.util.List;

public class ClassicListPresenter implements ClassicListContract.ClassicListPresenter{
    private ClassicListActivity mView;
    private ClassicListModel mModel;

    ClassicListPresenter(ClassicListActivity mView) {
        this.mView = mView;
        this.mModel = new ClassicListModel(this);
    }

    @Override
    public void getList(String cateId, String page) {
        mModel.getList(cateId, page);
    }

    @Override
    public void setList(List<ClassicProgramBean> beanList, boolean isMore) {
        mView.setList(beanList, isMore);
    }

    @Override
    public void setError(String msg, boolean isMore) {
        mView.setError(msg, isMore);
    }
}
